import { get, post } from "./http.js"

//1注册
export const reqregister = params => post("/api/register", params);

//2登录
export const reqlogin = params => post("/api/login", params);

//3新人专享
export const reqgetnew = () => get("/api/getnew");

//4万人团
export const reqgetgroupon = () => get("/api/getgroupon");

//5倒计时
export const reqgetcountdown = () => get("/api/getcountdown");

//6秒杀
export const reqgetseckill = () => get("/api/getseckill");

//7获取商品信息首页
export const reqindexgoods = () => get("/api/getindexgoods");

//8获取商品分类
export const reqcate = () => get("/api/getcate");

//9获取分类商品
export const reqcategoods = (params) => get("/api/getgoods", params);

//10优惠卷
export const reqcoupon = () => get("/api/getcoupon");

//11购物车列表
export const reqcarlist = (params) => get("/api/cartlist", params);

//12购物车添加
export const reqcaradd = params => post("/api/cartadd", params);

//13购物车删除
export const reqcardel = params => post("/api/cartdelete", params);

//14获取轮播图信息
export const reqgetbanner = () => get("/api/getbanner");

//15购物车添加
export const reqcaredit = params => post("/api/cartedit", params);

//16商品详情
export const reqdetail = (params) => get("/api/getgoodsinfo", params);

